package team2.arsystem.GUI;

import team2.arsystem.Controller.ApplicationController;
import team2.arsystem.Utilities.CommandConstants;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class Logout extends Activity {
	
	 @Override
	    public void onCreate(Bundle savedInstanceState) {
	        
	    	super.onCreate(savedInstanceState);
	    	
	    	ApplicationController.getApplicationController().passCommand(CommandConstants.logoutUser,null);
	    	try
         	{
                	 Class loginScreen = Class.forName("team2.arsystem.GUI."+"LoginScreen");
            		 Intent myIntent = new Intent(Logout.this,loginScreen);
            		 startActivity(myIntent);
                	}
                	catch(Exception e)
                	{
            			 e.printStackTrace();
            		 }
            		 
                
	        
	 }

}
